home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 223
/
223.d81
/
anagram 94
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
5KB
|
185 lines
1 poke55,0:poke56,128:clr
2 poke53281,0:poke53280,0:printchr$(147)chr$(14)chr$(8);
5 poke53272,29
6 dim m$(9),r$(4):f=0:ff=0:s=54272:gosub9900
7 sp$=" "
10 fori=1to5:readm$(i):next
11 data "[208]rint [208]uzzles "
13 data "[208]rint [211]olutions "
15 data "[210]ead [201]t "
16 data "[195]redits "
17 data "[204]oadstar "
20 tp$="[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
22 md$="[221][155] [146][221]"
23 ln$="[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][179]"
24 bt$="[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
25 goto30
26 print"[147]"tp$;
27 fori=1to23:printmd$;:next:printbt$:poke2023,125:poke56295,1
28 fori=217to242:pokei,peek(i)or128:next:return
30 gosub26
32 print"[221][156] [193]nagram [195]ouples [146][221]";
34 println$;
60 poke214,21:print
65 println$;
70 print"[221][154] [213]se cursor keys/[210][197][212][213][210][206] to select [146][221]";
80 gosub28
100 print"";
102 printtab(7)"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
104 qq$="[221] [221]"
105 fori=1to7:print""qq$:next
106 printtab(7)"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
107 poke214,5:print
109 fori=1to6:printtab(9)""m$(i):next
145 sys52496,6
146 poke198,0
150 r=5:m=1:poke214,r:print:printtab(9)"[154]"m$(m):m1=m:r1=r
155 getk$:ifk$=""then155
160 ifk$=chr$(13)thengosub9930:goto200
165 ifk$="[145]"thenm=m-1:r=r-1:ifm<1thenm=5:r=9
170 ifk$=""thenm=m+1:r=r+1:ifm>5thenm=1:r=5
175 ifm<>m1thenpoke214,r1:print:printtab(9)""m$(m1):gosub9910
180 poke214,r:print:printtab(9)"[154]"m$(m)
182 m1=m:r1=r
185 goto155
190 :
200 onmgoto1000,2000,12000,500,11000
205 goto150
500 sys52496,7
525 poke214,15:print:printtab(7)"[159][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
527 printtab(7)"[221] [208]uzzle [194]y [197]d [198]ournier [221]"
535 printtab(7)"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
544 t=1
545 getk$:ifk$<>""then550
546 t=t+1:ift<100then545
550 sys52499,7:gosub28:goto155
555 :
1000 gosub9000:ifppthen155
1005 gosub6000
1007 open4,4
1010 print#4,sp$;"puzzle #1"
1015 print#4
1020 print#4,sp$;"she + fit = - - - - - -":print#4
1025 print#4,sp$;"fry + ail = - - - - - -":print#4
1030 print#4,sp$;"let + lit = - - - - - -":print#4
1035 print#4,sp$;"and + age = - - - - - -":print#4
1036 print#4,sp$;"cat + tin = - - - - - -"
1040 print#4:print#4
1045 print#4,sp$;"puzzle #2"
1050 print#4
1055 print#4,sp$;"fuel + sage = - - - - - - - -":print#4
1060 print#4,sp$;"love + rate = - - - - - - - -":print#4
1065 print#4,sp$;"rice + pact = - - - - - - - -":print#4
1070 print#4,sp$;"alas + nose = - - - - - - - -":print#4
1071 print#4,sp$;"suet + rare = - - - - - - - -"
1075 print#4:print#4
1076 print#4,sp$;"puzzle #3"
1077 print#4
1078 print#4,sp$;"drone + mutes = - - - - - - - - - -":print#4
1079 print#4,sp$;"inept + alarm = - - - - - - - - - -":print#4
1080 print#4,sp$;"stile + pence = - - - - - - - - - -":print#4
1081 print#4,sp$;"nears + quiet = - - - - - - - - - -":print#4
1085 print#4,sp$;"snore + cider = - - - - - - - - - -"
1089 print#4:print#4
1100 print#4,sp$;"puzzle #4"
1105 print#4
1110 print#4,sp$;"latest + shines = - - - - - - - - - - - -":print#4
1115 print#4,sp$;"suitor + spinet = - - - - - - - - - - - -":print#4
1120 print#4,sp$;"porous + pester = - - - - - - - - - - - -":print#4
1125 print#4,sp$;"tamper + edited = - - - - - - - - - - - -":print#4
1130 print#4,sp$;"pruner + entree = - - - - - - - - - - - -"
1500 print#4:close4:goto155
1505 :
2000 gosub9000:ifppthen155
2005 gosub6000
2007 open4,4
2010 print#4,sp$;"puzzle #1"
2015 print#4
2020 print#4,sp$;"she + fit = fetish"
2025 print#4,sp$;"fry + ail = fairly"
2030 print#4,sp$;"let + lit = little"
2035 print#4,sp$;"and + age = agenda"
2036 print#4,sp$;"cat + tin = intact"
2040 print#4:print#4
2045 print#4,sp$;"puzzle #2"
2050 print#4
2055 print#4,sp$;"fuel + sage = fuselage"
2060 print#4,sp$;"love + rate = elevator"
2065 print#4,sp$;"rice + pact = practice"
2070 print#4,sp$;"alas + nose = seasonal"
2071 print#4,sp$;"suet + rare = treasure"
2075 print#4:print#4
2076 print#4,sp$;"puzzle #3"
2077 print#4
2078 print#4,sp$;"drone + mutes = tremendous"
2079 print#4,sp$;"inept + alarm = parliament"
2080 print#4,sp$;"stile + pence = pestilence"
2081 print#4,sp$;"nears + quiet = equestrian"
2085 print#4,sp$;"snore + cider = reconsider"
2089 print#4:print#4
2100 print#4,sp$;"puzzle #4"
2105 print#4
2110 print#4,sp$;"latest + shines = stealthiness"
2115 print#4,sp$;"suitor + spinet = superstition"
2120 print#4,sp$;"porous + pester = preposterous"
2125 print#4,sp$;"tamper + edited = premeditated"
2130 print#4,sp$;"pruner + entree = entrepreneur"
2500 print#4:close4:goto155
2505 :
6000 open4,4
6005 print#4, " #94 - anagram couples"
6006 print#4
6010 print#4:close4:return
9000 sys52496,7:pp=1
9005 poke214,15:print:printtab(7)"[159][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
9010 printtab(7)"[221] [208]rinter [210]eady? [y/n] [221]"
9025 printtab(7)"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
9035 getk$:ifk$=""then9035
9036 ifk$="y"thenpp=0
9040 sys52499,7:gosub28:return
9045 :
9800 poke214,21:print:println$;
9805 print"[221][154] [208]ress [210][197][212][213][210][206] [146][221]";
9810 getk$:ifk$<>chr$(13)then9810
9815 return
9820 :
9900 fori=0to24:pokes+i,.:next:return
9910 pokes+24,15:pokes+5,9:pokes+6,0
9915 pokes+1,19:pokes,63:pokes+4,17
9920 fort=1to50:next:pokes+4,16:return
9930 pokes+24,15:pokes+5,9:pokes+6,0
9935 pokes+1,48:pokes,0:pokes+4,17
9940 fort=1to50:next:pokes+4,16:return
10000 d=peek(186):n$="anagram 94":open1,d,15,"i0":close1
10001 open1,d,15,"s0:"+n$:close1:saven$,d:end
11000 poke214,15:print
11005 printtab(7)"[150][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
11015 printtab(7)"[221] [193]re you sure? [y/n] [221]"
11025 printtab(7)"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
11030 getk$:ifk$=""then11030
11035 ifk$<>"y"thensys52499,6:goto150
11037 print"[147]":poke53272,23
11040 goto40000
12000 sys52496,7
12001 gosub26
12005 print"[221][156] [193]nagram [195]ouples [146][221]";
12010 println$;
12015 print"[155] [211]imply combine the letters of
12020 [153]"list the two shown words to form a
12025 print"[155] longer word. [198]or example,
12030 [153]"list str$val(NULL)(NULL) + (NULL)valatn(NULL) = (NULL)atn(NULL)val(NULL)(NULL)valstr$.
12065 print"[155] [217]ou will form 6, 8, 10 and 12
12070 [153]"list letter words.
12100 gosub9800
12105 sys52499,7:gosub28:goto155
40000 fori=0to21:poke828+i,8+i:next
40010 ifdv<8ordv>29ordv=8then40030
40020 a=peek(828):b=peek(828+dv-8):poke828,b:poke828+dv-8,a
40030 a$="hello connect":forj=8to29:i=peek(828+j-8):ifi=14thennext
40040 close2:open2,i,2:close2:ifstthen40060
40050 close15:open15,i,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer=63then40070
40060 next:print"[147]":poke53272,23:poke186,8:end
40070 q$=chr$(34):poke646,peek(53281):print"[147]":poke53272,23
40080